package kr.hkit.powerjava.chther11;

import java.lang.reflect.Method;
import java.text.DateFormat.Field;

public class ObjTest {
	public static void main(String[] args) {
		Car car = new Car();
		// System.out.println(car.getClass().getCanonicalName().g);
		Method[] m = car.getClass().getDeclaredMethods();
		for (Method method : m) {

			System.out.println(method.getName());
		}
		java.lang.reflect.Field[] arrField = car.getClass().getDeclaredFields();
		for (java.lang.reflect.Field f : arrField) {

			System.out.println(f.getName());
			System.out.println(f.getModifiers());
		}
	}
}
